<template>
  <div id="OrdersTitle">
    <v-details
      :inputConfig="inputConfig"
      :detailData="inputData"
      ref="input"
    ></v-details>
  </div>
</template>

<script>
import details from 'commons/Detail'
import baseMixin from "@/mixins/BaseMixin";

export default {
  props: {
    inputData: {
      type: Object,
    }
  },
  mixins: [baseMixin],
  name: "OrdersTitle",
  data () {
    return {}
  },
  computed: {
    inputConfig () {
      return [
        [
          {
            type: "input",
            label: this.$t('out.wavekey'),
            props: "wavekey",
            disabled: true
          },
          {
            type: "input",
            label: this.$t('wave.totalorders'),
            props: "sumtotalorders",
            disabled: true
          },
          {
            type: "textarea",
            label:  this.$t('app.remark'),
            props: "descr",
            switch:true,
            break:true
          },
        ],
        [
          {
            type: "select",
            label: this.$t('out.wavetype'),
            props: "rtxwavetype",
            options: this.getOptions("querycodeLkup/RTXWAVETYPE"),
            disabled: true
          },
          {
            type: "input",
            label: this.$t('in.totalpoqty'),
            props: "sumtotalquantitys",
            disabled: true
          },
        ],
        [
          {
            type: "select",
            label: this.$t('common.status'),
            props: "status",
            options: this.getOptions("querycodeLkup/WAVESTATUS"),
            disabled: true
          },
          {
            type: "input",
            label: this.$t('wave.totalgrosswgt'),
            props: "sumtotalweights",
            disabled: true
          },
        ],
        [
          {
            type: "date",
            label: this.$t('ex.wavedate'),
            props: "adddate",
            disabled: true
          },
          {
            type: "input",
            label: this.$t('out.totalcube'),
            props: "sumtotalcubes",
            disabled: true
          },
        ],
      ]

    },

  },
  methods: {
  },
  mounted () {
  },
  watch: {},
  components: {
    'v-details': details
  }
}
</script>

<style scoped>
</style>
